<div class="box">
  <!--<div class="box-header">-->
    <!--<div class="row">-->
        <!--<div class="col-sm-7">-->
            <!--<div class="box-tools search-form pull-right">-->
                <!--<div class="input-group input-group-sm">-->

                    <!--<input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持昵称|用户名|手机">-->
                    <!--<div class="input-group-btn">-->
                      <!--<button type="button" id="search"  url="{:url('serviceMoneyList')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>-->
                    <!--</div>-->

                <!--</div>-->
           <!--</div>-->
        <!--</div>-->
    <!--</div>-->
  <!--</div>-->
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>时间</th>
		  <th>分润总额</th>
		  <th>服务商分润（人数）</th>
		  <th>市级服务商分润（人数）</th>
		  <th>区县服务商分润（人数）</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
				  <td>{$vo.add_time}</td>
					<td>{$vo.sum}</td>
					<td>{$vo.fws}（{$vo.f3}）</td>
					<td>{$vo.sjfws}（{$vo.f2}）</td>
					<td>{$vo.qxfws}（{$vo.f1}）</td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        window.location.href = searchFormUrl($(".export"));
    });
	function bfqx(id){
		layer.confirm('请您选择拨付类型！', {
		  btn: ['简历查看','发布职位'] //按钮
		}, function(){
			layer.prompt({title: '输入拨付次数', formType: 4},function(val, index){
				if(isNaN(val)){
					layer.msg("请输入正确的数字");
					return false;
				}
			    $.post("{:url('editNum')}",{resumeNum:val,user_id:id},function(data){
					if(data.code == 0){
						layer.msg(data.msg);
						location.reload();
					}else{
						layer.msg(data.msg);
					}
				},'json');
			});
		}, function(){
			layer.prompt({title: '输入拨付次数', formType: 4},function(vals, index){
				if(isNaN(vals)){
					layer.msg("请输入正确的数字");
					return false;
				}
			    $.post("{:url('editNum')}",{workNum:vals,user_id:id},function(data){
					if(data.code == 0){
						layer.msg(data.msg);
						location.reload();
					}else{
						layer.msg(data.msg);
					}
				},'json');
			});
	    });
	}
	//拨付
	function bfMoney(id){
		layer.prompt({title: '输入拨付金额', formType: 4},function(val, index){
			if(isNaN(val)){
				layer.msg("请输入正确的数字");
				return false;
			}
			$.post("{:url('editMoney')}",{money:val,user_id:id},function(data){
				if(data.code == 0){
					layer.msg(data.msg);
					location.reload();
				}else{
					layer.msg(data.msg);
				}
			},'json');
		});
	}
	//重置密码
	function resetPassword(id){
		password=<?php echo config('reset_password');?>;
		layer.confirm('重置密码为：<span style="color:red">'+password+'</span>，确定重置密码？', {
		  time: 0 //不自动关闭
		  ,btn: ['确定', '取消']
		  ,yes: function(index){
			layer.close(index);
			$.post("{:url('resetPassword')}",{id:id,password:password},function(data){
				if(data.code == 0){
					layer.msg(data.msg);
					location.reload();
				}else{
					layer.msg(data.msg);
				}
			},'json');
		  }
		});
	}
</script>